package com.core.reach.cloudhub.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * @author ga.zhang
 * @version V1.0
 * @description: TODO
 * @date 2020/4/1 8:55
 **/
@Mapper
public interface AccountMapper {

    /**
     * 减余额
     *
     * @param userId 用户编号
     * @param money  金额
     * @return Integer
     */
    Integer reduceAccount(@Param("userId") Long userId,
                          @Param("money") BigDecimal money);

}
